package com.micai.springboot.event;

import com.micai.springboot.vo.MemberVo;
import org.springframework.context.ApplicationEvent;

/**
 * @Auther: zhaoxinguo
 * @Date: 2018/7/30 18:56
 * @Description: 自定义发送短信事件
 */
public class OnSendSmsEvent extends ApplicationEvent {

    private final MemberVo memberVo;
    private final String to;
    private final String content;
    /**
     * Create a new ApplicationEvent.
     *
     * @param memberVo the object on which the event initially occurred (never {@code null})
     */
    public OnSendSmsEvent(final MemberVo memberVo, final String to, final String content) {
        super(memberVo);
        this.memberVo = memberVo;
        this.to = to;
        this.content = content;
    }

    public MemberVo getMemberVo() {
        return memberVo;
    }

    public String getTo() {
        return to;
    }

    public String getContent() {
        return content;
    }
}
